<?php include(VIEWSPATH."/common/header.php") ?>

<script>
	$(document).ready(function() {
		$("#sel_type").val("<?php echo $type ?>");

		$("#price").html(FormatCurrency($("#price").html()));
	});
</script>
<style>
	table td{
		text-align:left;
	}
</style>
<table align="center">
	<tr>
		<td width="100">Loai</td>
		<td>
			<select id="sel_type">
				<option id="1" value ="1">truyen thong </option>
				<option id="1" value ="1">cach tan </option>
			</select>
		</td>
	</tr>
	<tr>
		<td width="100">Gia tien </td>
		<td>
			<span id="price"><?php echo $price ;?></span> <span class="money">VNĐ</span>
		</td>
	</tr>
	<tr>
		<td width="100">Ghi chu </td>
		<td>
			<?php echo $note ;?>
		</td>
	</tr>
	<tr>
		<td width="100">Hinh anh </td>
		<td>
			<div id="div_img">
				
				<img class ="img_small" src="<?php echo base_url('/assets/image/aodai/'.($id %10)."/big_".$image); ?>"></img>
				
			</div>
			
		</td>
	</tr>
	<tr >
		<td></td>
		<td  style="text-align:center">	
			<input type="button" name="btn_back" id="btn_back" value="Về trang list" onclick="window.location='<?php echo base_url('product/search')?>'"></input>	
			<input type="button" name="btn_edit" id="btn_edit" value="Sửa" onclick="window.location='<?php echo base_url('/product/edit/'.$id) ?>'"></input>
		</td>
	</tr>
</table>

<?php include(VIEWSPATH."/common/footer.php") ?>